<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="format-detection" content="telephone=no">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
	<title>我的</title>
	<link rel="stylesheet" type="text/css" href="../../lib/css/skin.css"/>
</head>
<body>
<div id="root">
	<div class="app_warp">
		<div class="app_head">
			<span class="left back"></span>
			<span class="name">院校详情</span>
		</div>

	</div>
</div>
<script id="yuanxiao_intro_template" type="text/html">
	<div class="yuanxiao_head">
		<img src="<%:=data.school.logo%>" alt="">
		<h4 class="name">
			<%:=data.school.name%>
		</h4>
		<p class="plan">
			招生人数：<%:=data.school.number%>
		</p>
		<p class="plan">
			录取批次：<%:=data.school.batch%>
		</p>
		<p class="plan">
			文化分：<%:=data.school.culturalPoints%>
		</p>
	</div>

	<div class="app_col_nav clearfix">
		<div id="temp_nav" class="app_col_inner_nav menuflex loaded animated fadeIn">

			<a href="javascript:;" tapmode onclick="showContents(1,this)" class="active">最新消息</a>
			<a href="javascript:;" tapmode onclick="showContents(2,this)">专业</a>
			<a href="javascript:;" tapmode onclick="showContents(3,this)">分数</a>
			<a href="javascript:;" tapmode onclick="showContents(4,this)">招生简章</a>
			<a href="javascript:;" tapmode onclick="showContents(5,this)">院校信息</a>

		</div>
	</div>

	<div class="app_main">
		<div class="space"></div>
		<div id="show_contents_1" class="show_contents">
			<div class="app_box">
				<div class="box_tit">
					<span class="name">
						最新消息
					</span>
				</div>
				<div class="box_cont">
					<ul class="app_collist text_list">
						<%for(var item1 in data.information){var thisData=data.information[item1]%>
						<li class="in" tapmode onclick="_$.getPage('<%:=thisData.url%>')">
							<%:=thisData.title%>
						</li>
						<%}%>
					</ul>
				</div>
			</div>
		</div>

		<div id="show_contents_2" class="hide show_contents">
			<%for(var item2 in data.major){%>
			<div class="app_box">
				<div class="box_tit">
					<span class="name">
						<%:=item2%>
					</span>
				</div>
				<div class="box_cont">
					<ul class="app_collist text_list">
						<%for(var item22 in data.major[item2]){var thisData=data.major[item2][item22]%>
						<li class="in" tapmode onclick="_$.getPage('<%:=thisData.url%>')">
							<%:=thisData.title%>
						</li>
						<%}%>
					</ul>
				</div>
			</div>
			<%}%>
		</div>
		<div id="show_contents_3" class="hide show_contents">
			<div class="app_box">
				<div class="box_tit">
					<span class="name">
						分数
					</span>
				</div>
				<div class="box_cont">
					<ul class="app_collist text_list">
						<%for(var item3 in data.fraction){var thisData=data.fraction[item3]%>
						<li class="in" tapmode onclick="_$.getPage('<%:=thisData.url%>')">
							<%:=thisData.title%>
						</li>
						<%}%>
					</ul>
				</div>
			</div>
		</div>
		<div id="show_contents_4" class="hide show_contents">
			<div class="app_box">
				<div class="box_tit">
					<span class="name">
						招生简章
					</span>
				</div>
				<div class="box_cont">
					<ul class="app_collist text_list">
						<%for(var item4 in data.generalrules){var thisData=data.generalrules[item4]%>
						<li class="in" tapmode onclick="_$.getPage('<%:=thisData.url%>')">
							<%:=thisData.title%>
						</li>
						<%}%>
					</ul>
				</div>
			</div>
		</div>
		<div id="show_contents_5" class="hide show_contents">
			<div class="app_box">
				<div class="box_tit">
					<span class="name">
						院校信息
					</span>
				</div>
				<div class="box_cont">
					<ul class="app_collist text_list">
						<li>
							<%:=data.schoolDetail.address%>
						</li>
						<li>
							<a href="tel:<%:=data.schoolDetail.phone%>">
								<%:=data.schoolDetail.phone%>
							</a>
						</li>
						<li tapmode onclick="_$.getPage('<%:=data.schoolDetail.website%>')">
							<%:=data.schoolDetail.website%>
						</li>
						<li tapmode onclick="_$.getPage('<%:=data.schoolDetail.introduction%>')">
							介绍
						</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</script>
<script>
	var showContents=function(index,obj){

			$('.app_col_inner_nav a').removeClass('active');
			$(obj).addClass('active');

			$('.show_contents').addClass('hide');
			$('#show_contents_'+index).removeClass('hide');
		},
		appready = function () {

			_$.loading.start();
			_$.ajax({
				interface: 'getSchoolData',
				data:{
					id:api.pageParam.id
				},
				call: function (data) {
					_$.template('yuanxiao_intro_template', data, function (html) {
						$('.app_head').after(html);
					})
					_$.loading.end();
				}
			})
		};
</script>
<script src="../../lib/js/config.js"></script>
<script src="../../lib/js/jquery.js"></script>
<script src="../../lib/js/common.js"></script>
</body>
</html>